#!/bin/bash



# This shell script used to download crosstool-ng install binary and compile it for arm920t
CROSSTOOL=crosstool-ng-centos-LingYun-v1.0.0.bin
if [ ! -f ${CROSSTOOL} ] ; then 
    wget ftp://master.iot-yun.com/linux_tools/${CROSSTOOL}   
    sed -i -e "s|^sup_arch=.*|sup_arch=(\"\", \"arm920t\")|g" crosstool-ng-centos-LingYun-v1.0.0.bin fi
    chmod a+x ${CROSSTOOL}
    ./${CROSSTOOL} 
